package com.atkxp.stustatusmasystem.service;

import com.atkxp.stustatusmasystem.mapper.ClassMapper;
import com.atkxp.stustatusmasystem.pojo.Class;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/28-17:31
 */
@Service
public class ClassServiceImpl implements ClassService{

    @Autowired
    public ClassMapper classMapper;
    @Override
    public Class getClassById(int id) {
        return classMapper.getClassById(id);
    }

    @Override
    public List<Class> getAllClassByTid(String tid) {
        return classMapper.getAllClassByTid(tid);
    }

    @Override
    public List<Class> getAllClasses() {
        return classMapper.getAllClasses();
    }

    @Override
    public int addClass(Class clazz) {
        return classMapper.addClass(clazz);
    }
}
